#!/usr/bin/env bash

DIR=$(cd "$(dirname "$0")"; pwd)
set -ex
cd $DIR/fs

#sqlite3 ~/.config/rmw/lib/db .dump > db.sql

# 需要 sqlite 3.34
sqlite3 ~/.config/rmw/lib/db ".schema --nosys" > db.sql
cat db.sql
echo "PRAGMA journal_mode = WAL;" >> db.sql
echo "PRAGMA locking_mode = EXCLUSIVE;" >> db.sql
echo "PRAGMA temp_store = 2;" >> db.sql

#dio commit && dio push
